package de.koller.altitude.engine;

import de.koller.altitude.ANode;
import de.koller.altitude.engine.entity.player.IActivePlayerEntity;
import de.koller.altitude.engine.entity.player.WalkingPlayer;
import de.koller.altitude.engine.physics.Physics;
import de.koller.altitude.engine.world.Floor;
import de.koller.oceanFramework.tree.Child;

public class AEngine extends ANode {
	
	public final Floor floor = new Floor();
	@Child public final Physics physics = new Physics();
	
	@Child private final WalkingPlayer activePlayer = new WalkingPlayer();

	@Override
	protected void init() {
		super.init();
		
		activePlayer.mo.location.position.set( 7.5f, 0, .5f );
		activePlayer.mo.location.alignment.y = (float)Math.PI;
	}

	public IActivePlayerEntity getActivePlayer() {
		return activePlayer;
	}
	
}
